/**
 * 
 */
package org.t2.game.server.module.data.saver;

import org.springframework.stereotype.Component;
import org.t2.game.server.module.player.model.Player;

import sh.t2.share.module.player.log.PlayerLevelLog;

/**
 * 
 */
@Component
public class PlayerLevelSaver extends AbstractPlayerSaver<Player, PlayerLevelLog> {

	@Override
	public long getNumber(Player t) {
		return t.getLevel();
	}

	@Override
	protected void setNumber0(Player t, long number) {
		t.setLevel(number);
	}

	@Override
	protected PlayerLevelLog newNumberLog() {
		return new PlayerLevelLog();
	}
}
